// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '工作站',
        name: 'Workstation',
        url: "/Workstation/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"WorkCode":"","WorkStationName":"","WorkAddress":"","CarName":"","Process":"","Status":"","WorkDesc":""};
    const editFormOptions = [[{"title":"工作站编号","field":"WorkCode","type":"text"}],
                              [{"title":"工作站名称","field":"WorkStationName","type":"text"}],
                              [{"title":"工作站地点","field":"WorkAddress","type":"text"}],
                              [{"dataKey":"车间名称","data":[],"title":"所在车间名称","field":"CarName","type":"select"}],
                              [{"dataKey":"所属工序","data":[],"title":"所属工序","field":"Process","type":"select"}],
                              [{"dataKey":"是否启用","data":[],"title":"是否启用","field":"Status","type":"radio"}],
                              [{"title":"备注","field":"WorkDesc","type":"textarea"}]];
    const searchFormFields = {"WorkCode":"","WorkStationName":"","CarName":"","Process":""};
    const searchFormOptions = [[{"title":"工作站编号","field":"WorkCode","type":"like"},{"title":"工作站名称","field":"WorkStationName","type":"like"}],[{"dataKey":"车间名称","data":[],"title":"所在车间名称","field":"CarName","type":"like"},{"dataKey":"所属工序","data":[],"title":"所属工序","field":"Process","type":"like"}]];
    const columns = [{field:'Id',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'WorkCode',title:'工作站编号',type:'string',width:110,align:'left'},
                       {field:'WorkStationName',title:'工作站名称',type:'string',width:110,align:'left'},
                       {field:'WorkAddress',title:'工作站地点',type:'string',width:110,align:'left'},
                       {field:'CarName',title:'所在车间名称',type:'string',bind:{ key:'车间名称',data:[]},width:110,align:'left'},
                       {field:'Process',title:'所属工序',type:'string',bind:{ key:'所属工序',data:[]},width:110,align:'left'},
                       {field:'Status',title:'是否启用',type:'int',bind:{ key:'是否启用',data:[]},width:110,align:'left'},
                       {field:'WorkDesc',title:'备注',type:'string',width:110,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}